# -*- coding: utf-8 -*-

#Problem 5
#30 November 2001

#http://projecteuler.net/index.php?section=problems&id=5

#2520 is the smallest number that can be divided by each of the numbers
#from 1 to 10 without any remainder.

#What is the smallest number that is evenly divisible by all of
#the numbers from 1 to 20?


from math_ext import *


def prob5():
  result = lcm(1, 2)
  print "lcm(1, 2)\t= 2"
  for k in range(3, 21):
    m = lcm(result, k)
    print "lcm(" + str(result) + ", " + str(k) + ")\t= " + str(m)
    result = m
  
  return result

print prob5()

